﻿<UserControl x:Class="MediaBrowserSL.RIA.Views.PageHomeView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:jadeControls="http://www.sebastien-alves.fr/jadeToolsSLControls"
    mc:Ignorable="d"
    d:DesignHeight="768" d:DesignWidth="1024">

    <UserControl.DataContext>
        <Binding Mode="OneWay" Path="Home" Source="{StaticResource Locator}"/>
    </UserControl.DataContext>

    <Grid x:Name="LayoutRoot">

        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <!--<Grid.Effect>
            <jadeControls:ReflectionShader ElementHeight="{Binding ElementName=LayoutRoot, Path=ActualHeight}" />
        </Grid.Effect>-->

        <Viewbox x:Name="viewMovies" Grid.Column="0" Grid.Row="0" Cursor="Hand" Margin="30" 
                 MinWidth="203" MinHeight="141" MaxWidth="453" MaxHeight="391">
            <Button Command="{Binding MoviesViewCommand}" Style="{StaticResource ButtonStyleNav}" Width="203" Height="141">
                <StackPanel>
                    <Image Source="/MediaBrowserSL.RIA;component/Images/Movie.png" Stretch="Fill" Width="101" Height="101"/>
                    <sdk:Label Content="Films" FontFamily="Calibri" FontSize="13.333" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
                </StackPanel>
                <!--<Button.Effect>
                    <jadeControls:ReflectionShader ElementHeight="141" />
                </Button.Effect>-->
            </Button>
        </Viewbox>

        <Viewbox x:Name="viewMusic" Grid.Column="1" Grid.Row="0" Cursor="Hand" Margin="30"
                  MinWidth="203" MinHeight="141" MaxWidth="453" MaxHeight="391">
            <Button Command="{Binding MusicsViewCommand}" Style="{StaticResource ButtonStyleNav}" Width="203" Height="141">
                <StackPanel>
                    <Image Source="/MediaBrowserSL.RIA;component/Images/Music.png" Stretch="Fill" Width="101" Height="101"/>
                    <sdk:Label Content="Musiques" FontFamily="Calibri" FontSize="13.333" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
                </StackPanel>
                <!--<Button.Effect>
                    <jadeControls:ReflectionShader ElementHeight="141" />
                </Button.Effect>-->
            </Button>
        </Viewbox>

        <Viewbox x:Name="viewPictures" Grid.Column="0" Grid.Row="1" Cursor="Hand" Margin="30"
                  MinWidth="203" MinHeight="141" MaxWidth="453" MaxHeight="391">
            <Button Command="{Binding PicturesViewCommand}" Style="{StaticResource ButtonStyleNav3}" Width="203" Height="141">
                <StackPanel>
                    <Image Source="/MediaBrowserSL.RIA;component/Images/Picture.png" Stretch="Fill" Width="101" Height="101"/>
                    <sdk:Label Content="Images" FontFamily="Calibri" FontSize="13.333" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
                </StackPanel>
                <Button.Effect>
                    <jadeControls:ReflectionShader ElementHeight="141" />
                </Button.Effect>
            </Button>
        </Viewbox>

        <Viewbox x:Name="viewBooks" Grid.Column="1" Grid.Row="1" Cursor="Hand" Margin="30"
                  MinWidth="203" MinHeight="141" MaxWidth="453" MaxHeight="391">
            <Button Command="{Binding BooksViewCommand}" Style="{StaticResource ButtonStyleNav3}" Width="203" Height="141">
                <StackPanel>
                    <Image Source="/MediaBrowserSL.RIA;component/Images/books.png" Stretch="Fill" Width="101" Height="101" />
                    <sdk:Label Content="Librairie" FontFamily="Calibri" FontSize="13.333" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
                </StackPanel>
                <Button.Effect>
                    <jadeControls:ReflectionShader ElementHeight="141" />
                </Button.Effect>
            </Button>
        </Viewbox>


    </Grid>
</UserControl>
